package ex.com.jm.food.service.impl;

import java.util.List;

import ex.com.jm.food.dao.AdminPicStyleDao;
import ex.com.jm.food.entity.PicStyle;
import ex.com.jm.food.service.AdminPicStyleService;

public class AdminPicStyleServiceImpl implements AdminPicStyleService {

	private AdminPicStyleDao adminPicStyleDao;
	public AdminPicStyleDao getAdminPicStyleDao() {
		return adminPicStyleDao;
	}

	public void setAdminPicStyleDao(AdminPicStyleDao adminPicStyleDao) {
		this.adminPicStyleDao = adminPicStyleDao;
	}

	@Override
	public List<PicStyle> getPicStyles(int initPage, int pageRow, String value,
			String sort, String order) {
		// TODO Auto-generated method stub
		return this.getAdminPicStyleDao().getPicStyles(initPage, pageRow, value, sort, order);
	}

	@Override
	public int picCount(String value) {
		// TODO Auto-generated method stub
		return this.getAdminPicStyleDao().picCount(value);
	}

	@Override
	public Object savePicStyle(PicStyle picStyle) {
		// TODO Auto-generated method stub
		return this.getAdminPicStyleDao().savePicStyle(picStyle);
	}

	@Override
	public void updatePicStyle(PicStyle picStyle) {
		// TODO Auto-generated method stub
     this.getAdminPicStyleDao().updatePicStyle(picStyle);
	}

	@Override
	public PicStyle editPicStyle(Integer id) {
		// TODO Auto-generated method stub
		return this.getAdminPicStyleDao().editPicStyle(id);
	}

	@Override
	public void delPicStyle(Integer id) {
		// TODO Auto-generated method stub
     this.getAdminPicStyleDao().delPicStyle(id);
	}

	@Override
	public PicStyle checkValue(String value) {
		// TODO Auto-generated method stub
		return this.getAdminPicStyleDao().checkValue(value);
	}

}
